<div class="title-dangky"><?php echo lang('thietlapthongtin');?></div>

<div class="member">
    <div class="khoangcach-info"></div>
    <div class="thietlap<?php if($buoc == '/b2') echo '2';?><?php if($buoc == '/b3') echo '3';?>">
        <div class="khoangcach-info"></div>
        <div class="row-fluid">
            <div class="span2 <?php if($buoc == '/b1') echo 'active-step-user';?> text-center"><?php echo lang('thongtinveban');?></div>
            <div class="span2 <?php if($buoc == '/b2') echo 'active-step-user';?> offset3 text-center"><?php echo lang('thongtindangnhap');?></div>
            <div class="span2 <?php if($buoc == '/b3') echo 'active-step-user';?> offset3 text-center"><?php echo lang('thongtinlienhe');?></div>
        </div>
    </div>
    <div class="clear-content"></div><div class="clear-content"></div><div class="clear-content"></div>
    <div class="slogan-info"><?php echo lang('haydienthattotthongtin');?></div>
    
    <div class="box-content-thongtin">
        <div class="box-thong-tin-cb">
            <table>
                <tr><td><div class="nut-thong-tin-cb">
                    1. <?php echo lang($tieudeinfo);?>
                </div></td></tr>
            </table>    
        </div>
    </div><!--end box-content-thongtin-->
    
    <form method="post" <?php if(isset($link_user)) echo 'action="'.$link_user.'"'; else echo 'action="'.DOMAIN.'user/info/'.$_SESSION['user_id'].$buoc.'"';?>>
        <?php echo $this->Session->flash();?>
        <div class="row-fluid">
            <!-----------------------------------------------------b1-->
            <?php if($hienthi == 'b1'){?>
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('tucachthamgia');?></div>
                        <div class="span8">
                            <input type="radio" name="gioitinh" value="1" checked=""/>
                            <select name="data[User][sex]" class="span3" style="height: 35px; margin-bottom: 5px;">
                                <option value=""><?php echo lang('gioitinh');?></option>
                                <option value="Nam">Nam</option>
                                <option value="Nữ">Nữ</option>
                            </select><br />
                            <input type="radio" name="gioitinh" value="2"/>
                            <select name="data[User][cntochuc]" class="soan3">
                                <option value=""><?php echo lang('cntochuc');?></option>ư
                            </select>
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('tenhienthi');?></div>
                        <div class="span8"><input class="span9" placeholder="<?php echo lang('tenhienthi');?>" name="data[User][fullname]" type="text" value="<?php echo $user_login['fullname'];?>" maxlength="80" /></div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('ngaysinh');?></div>
                        <div class="span8">
                            <select name="data[User][birth_date]" class="span3">
                            <option value="0"><?php echo lang('ngay');?></option>
                            <?php for($i=1;$i<=31;$i++){
                                ?><option <?php if($user_login['birth_date'] == $i) echo 'selected';?>><?php echo $i;?></option><?php
                            } ?>
                          </select>
                          <select name="data[User][birth_month]" class="span3">
                            <option value="0"><?php echo lang('thang');?></option>
                            <?php for($i=1;$i<=12;$i++){
                                ?><option <?php if($user_login['birth_month'] == $i) echo 'selected';?>><?php echo $i;?></option><?php
                            } ?>
                          </select>
                          <select name="data[User][birth_year]" class="span3">
                            <option value="0"><?php echo lang('nam');?></option>
                            <?php for($i=2010;$i>=1900;$i--){
                                ?><option <?php if($user_login['birth_year'] == $i) echo 'selected';?>><?php echo $i;?></option><?php
                            } ?>
                          </select>
                        </div>
                    </div>
                </div><!--end box-input-theath-->   
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('nghanhthietke');?></div>
                        <div class="span8">
                            <select name="data[User][nghanhnghe]" class="span9">
                                <option value=""><?php echo lang('nghanhthietke');?></option>
                                <?php 
                                    foreach($listdanhmuc as $va){
                                ?>
                                    <option value="<?php echo $va['id'];?>"> -- <?php echo $va['name'];?></option>
                                    <?php 
                                        foreach($va['list'] as $valu){
                                    ?>
                                        <option value="<?php echo $valu['Catproduct']['id'];?>"> -- -- <?php echo $valu['Catproduct']['name'];?></option>
                                    <?php }?>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('tinhthanh');?></div>
                        <div class="span8">
                            <select name="data[User][city_id]" class="span9">
                                <option value=""><?php echo lang('tinhthanh');?></option>
                                <?php 
                                    foreach($listinhthanh as $key=>$value){
                                ?>
                                    <option <?php if($key == $user_login['city_id']) echo 'selected=""';?> value="<?php echo $key;?>"><?php echo $value;?></option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                </div><!--end box-input-theath-->
    
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"></div>
                        <div class="span8">
                            <input type="submit" value="<?php echo lang('luuthietlap');?>" class="btn btn-primary" />
                            <input type="button" class="btn" onclick="javascript:history.go(-1);" value="<?php echo lang('boqua');?>" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
            <?php }?>
            <?php if($buoc == '/b2'){?>
                
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('email');?></div>
                        <div class="span8">
                            <div class="emailchinh">
                                <?php echo lang('emailchinh');?> <input type="radio" checked="" style="margin: 0; padding: 0; width: auto;"/> <?php echo $user['email'];?>
                            </div>
                            <input class="span9" placeholder="<?php echo lang('emailthem');?>" name="data[User][emailthem]" value="<?php echo $user_login['emailthem'];?>" type="text" maxlength="80" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('matkhaucu');?></div>
                        <div class="span8">
                            <input class="span9" placeholder="<?php echo lang('matkhaucu');?>" name="data[User][password-old12]" value="" type="password" maxlength="80" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('matkhaumoi');?></div>
                        <div class="span8">
                            <input class="span9" placeholder="<?php echo lang('matkhau');?>" name="data[User][password]" type="password" maxlength="80" /><br /><br />
                            <input class="span9" placeholder="<?php echo lang('matkhau');?>" name="data[User][re-password]" type="password" maxlength="80" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                
    
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"></div>
                        <div class="span8">
                            <input type="submit" value="<?php echo lang('luuthietlap');?>" class="btn btn-primary" />
                            <input type="button" class="btn" onclick="javascript:history.go(-1);" value="<?php echo lang('boqua');?>" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
            <?php }?>
            <?php if($buoc == '/b3'){?>
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('phone');?></div>
                        <div class="span8">
                            <input class="span9" placeholder="<?php echo lang('dienthoaicodinh');?>" value="<?php echo $user_login['phone'];?>" name="data[User][phone]" type="text" maxlength="80" /><br /><br />
                            <input class="span9" placeholder="<?php echo lang('dienthoaididong');?>" value="<?php echo $user_login['phonephu'];?>" name="data[User][phonephu]" type="text" maxlength="80" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"><?php echo lang('lienketkhac');?></div>
                        <div class="span8">
                            <input class="span9" placeholder="<?php echo lang('face');?>" name="data[User][face]" value="<?php echo $user_login['face'];?>" type="text" maxlength="80" /><br /><br />
                            <input class="span9" placeholder="<?php echo lang('tw');?>" name="data[User][tw]" value="<?php echo $user_login['tw'];?>" type="text" maxlength="80" /><br /><br />
                            <input class="span9" placeholder="<?php echo lang('gcong');?>" name="data[User][gcong]" value="<?php echo $user_login['gcong'];?>" type="text" maxlength="80" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
                <div class="box-input-theath">
                    <div class="row-fluid">
                        <div class="span3 offset1"></div>
                        <div class="span8">
                            <input type="submit" value="<?php echo lang('luuthietlap');?>" class="btn btn-primary" />
                            <input type="button" class="btn" onclick="javascript:history.go(-1);" value="<?php echo lang('boqua');?>" />
                        </div>
                    </div>
                </div><!--end box-input-theath-->
            <?php }?>
        </div>
    </form>
</div>